package org.scboy.common.loads;

import org.scboy.coobi.sql.Coobi;
import org.scboy.coobi.sql.factory.EntityFactory;
import org.scboy.utils.entitys.rbac.LoginUser;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableCaching
@AutoConfigureAfter(value = {Coobi.class,EntityFactory.class})
public class LoadLoginUser {

	@Cacheable(value="RBAC_LOGIN_CACHE",key="#sessionId",unless="#result == null")
	public LoginUser getLoginUser(String sessionId){
		return null;
	}
}
